home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / c_toolbx.arc / EXPIO.C < prev    next >
Encoding:
C/C++ Source or Header  |  1988-03-30  |  386 b   |  22 lines

  1. /* expio.c - test console I/O preformance  */
  2. #include "stdio.h"
  3. #include "cminor.h"
  4.  
  5. main()
  6.   {
  7.      int   it , i , c ;
  8.      char  b  ;
  9.  
  10.      printf("\n char value (decimal):")  ;
  11.      scanf("%d",&c)  ;
  12.      printf("\n no. chars to write:")  ;
  13.      scanf("%d",&it)  ;
  14.  
  15.      for( i=1 ; i<=it ; i=i+1)
  16.     {  putchar(c)  ;  }
  17.      printf("\n ** thru ** \n")  ;
  18.   }
  19.  
  20.  
  21.  
  22.